// 全局配置文件
module.exports = {
    // 端口
    port:3030,
    // mysql配置
    mysql:{
        host:'localhost',
        port:'3306',
        user:'root',
        password:'1234',
        timezone:"08:00",
        database:'research_center'
    },
    //无需身份验证的接口路径
    noJWTPath:[
        /^\/swiper\/indexSlide/,/^\/swiper\/file\//,'/swiper',
        '/activity','/activity/byId',
        '/researchResult','/researchResult/byId',
        '/researchTopic','/researchTopic/byId',
        '/talent','/talent/byId',
        '/overview',
        '/exchange','/exchange/byId',
        '/course',
        '/admin/security','/admin/login',/^\/admin\/avatar\//,
        '/relation',
        '/researcher','/researcher/byId',
        /^\/file\/download\//,
        '/search'
    ],
    // 加密和解密的秘钥
    jwtSecretKey:"guse_center_bijie_end",
    // token有效期
    expiresIn:"7d",
    // 验证码秘钥
    securityKey:"center_admin_yzm",
    // 验证码有效期
    securityExpiresIn:'300s',
    securityCodeConfig:{
        size: 4,// 验证码长度
        ignoreChars: '0oO1iIl', // 验证码字符中排除 0o1i
        noise: 3, // 干扰线条的数量
        fontSize:42,
        color:true,//开启文字颜色
        background:"#999",//背景色
        width: 110,
        height: 40
    }
}
